<include file="header"/>

<div class="wrap">
	<div class="search-result-type">
		<div class="wrap">
			<ul>
				<li class="on"><a href="">全部</a></li>
				<li><a href="">合同</a></li>
				<li><a href="">文章</a></li>
				<li><a href="">数据统计</a></li>
				<li><a href="">纠纷案例</a></li>
				<li class="num">
					共找到<span>{$total_num}</span>个结果
				</li>
			</ul>
		</div>
	</div>
	
	<eq name="keyword" value="">
		<div class="empty-data">对不起，搜索条件不能为空！</div>
	</eq>
	<eq name="total_num" value="0">
		<div class="empty-data">对不起，找不到想关内容！</div>
	</eq>
	<gt name="total_num" value="0">
	<table class="search-result-data">
		<tr>
			<td class="b-r-line">
				<div class="title">合同文书</div>
				<ul class="agreement-search-result">
					<volist name="agreement.list" id="rs">
					<li <eq name="i" value="$agreement.count">style="border: 0px;"</eq>>
						<div class="title"><i>{$i}</i><span>{:search_work($rs['title'], $keyword)}</span></div>
						<div class=""><dd>【关键词】</dd> {:search_work($rs['keyword'], $keyword)}</div>
						<div class="content">{:search_work(str_cut($rs['description'], 250), $keyword)}</div>
					</li>
					</volist>
					<li class="more">
						<a href="">查看全部&gt;&gt;</a>
					</li>
				</ul>
				<div class="title">文章</div>
				<table class="article-search-result">
					<volist name="article.list" id="rs">
					<tr>
						<td class="img">
							<img src="{:D('File')->get_path('', 100, 100)}" alt="">
						</td>
						<td>
							<div class="title"><span>{:search_work($rs['title'], $keyword)}</span></div>
							<div class=""><dd>【关键词】</dd> {:search_work($rs['related_keyword'], $keyword)}</div>
							<div class="content">{:search_work($rs['description'], $keyword)}</div>
						</td>
					</tr>
					</volist>
				</table>
				<div class="title">相关纠纷案例</div>
				<ul class="agreement-search-result">
					<volist name="court.list" id="rs" offset="1" length='5'>
					<li>
						<div class="title"><i>{$i}</i><span>{:search_work($rs['title'], $keyword)}</span></div>
						<div class="">{$rs['court_name']}  {$rs['case_no']}  {$rs['judgment_date']}</div>
						<div class="content">{:search_work(str_cut($rs['reason_desc'], 250), $keyword)}</div>
					</li>
					</volist>
					<li class="more">
						<a href="">查看全部&gt;&gt;</a>
					</li>
				</ul>
			</td>
			<td>
				<div class="title">相关纠纷统计</div>
				<table>
					<tr>
						<td >
							<div id="container-1" style="width: 250px;height: 200px"></div>
							<script type="text/javascript">
								$(function () {
									$('#container-1').highcharts({
										chart: {
											type: 'column'
										   
										},
										colors:['#009DDA'],
										title: {
											text: '合同纠纷（个）'
										},
										xAxis: {
											categories: [
												<php>$count = count($top_contract_dispute_num);</php>
												<volist name="top_contract_dispute_num" id="rs">
												'{$rs["year"]}年'{$count == $i ? '' : ','}
												</volist>
											]
										},
										yAxis: {
											min: 0,
											title: {
												text: ''
											}
										},
										legend: {
											enabled: false
										},
										exporting:{enabled:false},
										credits :{enabled:false},
										series: [{
											name: '个数',
											data: [
												<volist name="top_contract_dispute_num" id="rs">
												{$rs["num"]}{$count == $i ? '' : ','}
												</volist>
											],
											dataLabels: {
												enabled: true,
												color: '#FFFFFF',
												x: 0,
												y: 18,
												style: {
													fontSize: '9px'
												}
											}
										}]
									});
								});
							</script>
						</td>
						<td>
							<div id="container-2" style="width: 250px;height: 200px"></div>
							<script type="text/javascript">
								$(function () {
									$('#container-2').highcharts({
										chart: {
											type: 'column'
										   
										},
										colors:['#009DDA'],
										title: {
											text: '合同纠纷金额（万）'
										},
										xAxis: {
											categories: [
												<php>$count = count($top_contract_dispute_money);</php>
												<volist name="top_contract_dispute_money" id="rs">
												'{$rs["year"]}年'{$count == $i ? '' : ','}
												</volist>
											]
										},
										yAxis: {
											min: 0,
											title: {
												text: ''
											}
										},
										legend: {
											enabled: false
										},
										credits :{enabled:false},
										exporting:{enabled:false},
										series: [{
											name: '个数',
											data: [
												<volist name="top_contract_dispute_money" id="rs">
												{$rs["money"]}{$count == $i ? '' : ','}
												</volist>
											],
											dataLabels: {
												enabled: true,
												color: '#FFFFFF',
												x: 0,
												y: 18,
												style: {
													fontSize: '9px'
												}
											}
										}]
									});
								});
							</script>
						</td>
					</tr>
					<tr>
						<td>
							<div class="charts-bar">
								<div class="title">委托律所</div>
								<ul>
									<volist name="top_law_firm_data.law_firm_data" id="rs" offset="1" length='3'>
									<li>
										<div class="info">
											<i>{$rs['num']}</i>
											{$rs['name']}
										</div>
										<div class="line">
											<span class="bar" style="width: {$rs['rate']}%;"></span>
										</div>
									</li>
									</volist>
								</ul>
							</div>
						</td>
						<td>
							<div class="charts-bar">
								<div class="title">委托律师</div>
								<ul>
									<volist name="top_law_firm_data.lawyer_data" id="rs" offset="1" length='3'>
									<li>
										<div class="info">
											<i>{$rs['num']}</i>
											{$rs['realname']} <span>{$rs['law_firm']}</span>
										</div>
										<div class="line">
											<span class="bar" style="width: {$rs['rate']}%;"></span>
										</div>
									</li>
									</volist>
								</ul>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div id="container-3" style="width: 250px;height: 200px"></div>
							<script type="text/javascript">
								$(function () {
									$('#container-3').highcharts({
										chart: {
											plotBackgroundColor: null,
											plotBorderWidth: null,
											plotShadow: false
										},
										colors:['#009DDA', '#60b4d4',  '#85bdd3',  '#a6cedd', '#c5e1ec', '#def2fa'],
										title: {
											text: '对方当事人'
										},
										credits :{enabled:false},
										exporting:{enabled:false},
										plotOptions: {
											pie: {
												allowPointSelect: true,
												cursor: 'pointer',
												dataLabels: {
													enabled: true,
													color: '#000000',
													connectorColor: '#000000',
													format: '<b>{point.name}</b>: {point.percentage:.1f} %'
												}
											}
										},
										series: [{
											type: 'pie',
											name: '数量',
											data: [
												['个人',   12],
												['机构',       88]
											]
										}]
									});
								});				
							</script>
							<div class="charts-bar">
								<ul>
									<volist name="top_to_law_firm_data.lawyer_data" id="rs" offset="1" length='3'>
									<li>
										<div class="info">
											<i>{$rs['num']}</i>
											{$rs['realname']} <span>{$rs['law_firm']}</span>
										</div>
										<div class="line">
											<span class="bar" style="width: {$rs['rate']}%;"></span>
										</div>
									</li>
									</volist>
								</ul>
							</div>
						</td>
						<td>
							<div id="container-4" style="width: 250px;height: 200px"></div>
							<script type="text/javascript">
								$(function () {
									$('#container-4').highcharts({
										chart: {
											plotBackgroundColor: null,
											plotBorderWidth: null,
											plotShadow: false
										},
										colors:['#009DDA', '#60b4d4',  '#85bdd3',  '#a6cedd', '#c5e1ec', '#def2fa'],
										title: {
											text: '案由'
										},
										credits :{enabled:false},
										exporting:{enabled:false},
										plotOptions: {
											pie: {
												allowPointSelect: true,
												cursor: 'pointer',
												dataLabels: {
													enabled: true,
													color: '#000000',
													connectorColor: '#000000',
													format: '<b>{point.name}</b>: {point.percentage:.1f} %'
												}
											}
										},
										series: [{
											type: 'pie',
											name: '数量',
											data: [
												['民事', 89],
												['刑事', 11]
											]
										}]
									});
								});				
							</script>
							<div class="charts-bar">
								<ul>
									<li>
										<div class="info">
											<i>14</i>
											合同纠纷
										</div>
										<div class="line">
											<span class="bar" style="width: 100%;"></span>
										</div>
									</li>
									<li>
										<div class="info">
											<i>10</i>
											特殊程序案件
										</div>
										<div class="line">
											<span class="bar" style="width: 80%;"></span>
										</div>
									</li>
								</ul>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div id="container-5" style="width: 250px;height: 200px"></div>
							<script type="text/javascript">
								$(function () {
									$('#container-5').highcharts({
										chart: {
											plotBackgroundColor: null,
											plotBorderWidth: null,
											plotShadow: false
										},
										colors:['#009DDA', '#60b4d4',  '#85bdd3',  '#a6cedd', '#c5e1ec', '#def2fa'],
										title: {
											text: '承办法院'
										},
										credits :{enabled:false},
										exporting:{enabled:false},
										plotOptions: {
											pie: {
												allowPointSelect: true,
												cursor: 'pointer',
												dataLabels: {
													enabled: true,
													color: '#000000',
													connectorColor: '#000000',
													format: '<b>{point.name}</b>: {point.percentage:.1f} %'
												}
											}
										},
										series: [{
											type: 'pie',
											name: '数量',
											data: [
												<php>$count = count($top_court_name);</php>
												<volist name="top_court_name" id="rs">
												['{$rs['name']}',   {$rs['num']}]{$count == $i ? '' : ','}
												</volist>
											]
										}]
									});
								});				
							</script>
							<div class="charts-bar">
								<ul>
									<volist name="top_court_name" id="rs">
									<li>
										<div class="info">
											<i>{$rs['num']}</i>
											{$rs['name']}
										</div>
										<div class="line">
											<span class="bar" style="width: {$rs['rate']}%;"></span>
										</div>
									</li>
									</volist>
								</ul>
							</div>
						</td>
						<td></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	</gt>
</div>
<include file="footer"/>